package com.supermate.init.dto;

import lombok.Data;

/**
 * @author jiao.zhou
 */
@Data
public class BaseRpcResult {

    private Boolean ifSuccess;

    private Boolean ifRetry;

    private Boolean ifSysErr;

    private String errCode;

    private String errMsg;

    public boolean ifSuccess() {
        return Boolean.TRUE.equals(ifSuccess);
    }

    public boolean ifFail() {
        return !ifSuccess();
    }

    public boolean ifRetry() {
        return Boolean.TRUE.equals(ifRetry);
    }

    public boolean ifSysErr() {
        return Boolean.TRUE.equals(ifSysErr);
    }

}
